package com.yyfax.pay.depository.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.yyfax.pay.depository.domain.FuiouFileUploadDetail;

/**
 * 文件上传详细持久化接口
 * 
 * @author buyi
 * @date 2017-09-29 09:41:10
 * @since v2.0.0
 */
public interface FuiouFileUploadDetailDao {
	/**
	 * 保存实体
	 * 
	 * @author buyi
	 * @date 2017-09-29 09:41:26
	 * @since v2.0.0
	 *
	 * @param record
	 * @return
	 */
	public int insert(FuiouFileUploadDetail record);
	
	/**
	 * 批量保存
	 * 
	 * @author buyi
	 * @date 2017-09-30 14:37:47
	 * @since v2.0.0
	 *
	 * @param details
	 * @return
	 */
	public int insertBatch(@Param("details") List<FuiouFileUploadDetail> details);

	/**
	 * 根据商户号和业务主键id获取集合
	 * 
	 * @author buyi
	 * @date 2017-09-07 11:37:31
	 * @since v2.0.0
	 * @param merchantCode
	 * @param busiId
	 * @return
	 */
	public List<FuiouFileUploadDetail> selectListByBusiId(@Param("merchantCode") String merchantCode, @Param("busiId") String busiId);

	/**
	 * 查询文件列表
	 * 
	 * @author buyi
	 * @date 2017-09-21 09:24:07
	 * @since v2.0.0
	 * @param merchantCode
	 * @param fileName
	 * @return
	 */
	public List<FuiouFileUploadDetail> selectByFileName(@Param("merchantCode") String merchantCode, @Param("fileName") String fileName);

	/**
	 * 更新结果
	 * 
	 * @author buyi
	 * @date 2017-09-21 09:24:19
	 * @since v2.0.0
	 * @param detail
	 * @return
	 */
	public int updateResult(FuiouFileUploadDetail detail);
	
	/**
	 * 批量更新订单
	 * 
	 * @author buyi
	 * @date 2017-09-30 09:27:49
	 * @since v2.0.0
	 *
	 * @param details
	 * @return
	 */
	public int updateResultBatch(@Param("details") List<FuiouFileUploadDetail> details);
}